home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 7836 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  852 b 

  1. Path: druid.borland.com!usenet
  2. From: pete@borland.com (Pete Becker)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Bizzare C++ bug...PLEASE CHECK IT OUT
  5. Date: 19 Feb 1996 18:01:27 GMT
  6. Organization: Borland International
  7. Message-ID: <4gadtn$ddp@druid.borland.com>
  8. References: <4fsns9$8ga3@flute.aix.calpoly.edu> <4g56r1$ep5@druid.borland.com> <4g86ha$fq9@btree.brooktree.com>
  9. NNTP-Posting-Host: pbecker.borland.com
  10. Mime-Version: 1.0
  11. Content-Type: Text/Plain; charset=ISO-8859-1
  12. X-Newsreader: WinVN 0.99.5
  13.  
  14. In article <4g86ha$fq9@btree.brooktree.com>, sasha@brooktree.com says...
  15. >
  16. >pete@borland.com (Pete Becker) wrote:
  17. >[deleted]
  18. >
  19. >>B::B()
  20. >>{
  21. >>       f();    // calls A::f, despite existence of C::f
  22. >>}
  23. >
  24. >You meant C:C()
  25. >{
  26. >   f();
  27. >}
  28. >
  29. >didn't you ?
  30. >
  31. >
  32.  
  33. No. That would call C::f. The point is that in B's constructor, the call to 
  34. f() is not virtual.
  35.  
  36.